{% extends "student/base.html" %}

{% block title %}教务管理系统 --学生查看成绩单{% endblock %}

{% block page_content %}
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <h2 align="center">成绩单</h2>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4 col-md-offset-4" style="background-color:lavender;">
            <!-- 在这里列出已教课程 -->
            {% if report_card %}
                <ul class="courses">
                    {% for taken in report_card %}
                        {% if taken.course and taken.section_id %}
                            <li class="course">
                                <div class="course-content">
                                    <div class="course-body">
                                        {{ taken.course.course_name }}|{% if taken.grade %}{{ taken.grade }}{% else %}
                                        暂无成绩{% endif %}
                                    </div>
                                </div>
                            </li>
                        {% endif %}
                    {% endfor %}
                </ul>
            {% else %}
                暂无成绩单
            {% endif %}
        </div>
    </div>
{% endblock %}